import http from '../index'

export const getCarouselAll = (data) => http({
    url: '/api/carousels/getCarouselAll?' + data,
    method: 'get',
})

export const addCarousel = (data) => http({
    url: '/api/carousels',
    method: 'post',
    data
})

export const editCarousel = (data) => http({
    url: '/api/carousels/updateCarouselById',
    method: 'put',
    data

})

export const delCarousel = (data) => http({
    url: '/api/carousels/' + data,
    method: 'delete',
})